import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-18
 * Time: 23:16
 */

/**
 * 字节流:OutputStream
 * 一次写一个字节
 */
public class Demo5 {
    public static void main(String[] args) throws IOException {
        try(OutputStream outputStream = new FileOutputStream("d:/text.txt",true)){
            outputStream.write(98);
            outputStream.write(99);
            outputStream.write(100);


        }
    }
}
